<?php

namespace App\Validate\api;

use Illuminate\Foundation\Http\FormRequest;
use App\Validate\BaseValidate;

class ScriptValidate extends BaseValidate
{

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'cartoon_id'=>'required',
            'title'=>'required',
        ];
    }

    public function messages()
    {
        return [
            'cartoon_id.required'=>'请提交cartoon_id',
            'title.required'=>'请填写标题',

        ];
    }

    public $scenes = [
        'addScript' => ['title','cartoon_id'],
    ];
}
